import { live } from "@/services";
const state = {
  liveData: [],
};
const getters = {};
const mutations = {
  update(state, payload) {
    state.liveData=payload
  },
};
const actions = {
  async liveList({ commit }, payload) {
    let result = await live(payload);
    if (result) {
      commit("update", result.data.room_info);
    }
  },
};

export default {
  namespaced: true,
  modules: {},
  state,
  getters,
  mutations,
  actions,
};
